package com.power.powercash;

import com.power.utils.Date;

/**
 *
 * @author f6036477
 */
public interface CompareDate
{

  public static final CompareBefore COMPARE_BEFORE = new CompareBefore();

  public static final CompareAfter COMPARE_AFTER = new CompareAfter();

  public static final CompareEquals COMPARE_EQUALS = new CompareEquals();

  public static final CompareBetween COMPARE_BETWEEN = new CompareBetween();


  public static interface CompareDateMethod {}

  public static class CompareBefore implements CompareDateMethod {}

  public static class CompareAfter implements CompareDateMethod {}

  public static class CompareEquals implements CompareDateMethod {}

  public static class CompareBetween implements CompareDateMethod {}



  public CompareDateMethod getCompareDateMethod();

  public void setCompareDateMethod(CompareDateMethod compare);

  public boolean match(Date d1, Date d2);

  public boolean match(Date d1, Date d, Date d2);

}
